import service from "@/request/request.js"

// 添加收货地址
export const addOrderInfoService = (form) => {
    return service({
        method: 'POST',
        url: '/netshop/addorder/',
        data: {
            ...form,

        }
    })
}

export const getOrderInfoService = (id,status)=>{
    return service({
        method:'GET',
        url:'/netshop/addorder/',
        params:{
            id,
            status
        }
    })
}

// 点击取消，然后显示已取消
export const clickCancel = (id) => {
    return service({
        method:'POST',
        url:'/netshop/clickcancel/',
        data:{
            id
        }
    })
}